﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GXRTBTC.PublicClassLibrary.Model
{
    /// <summary>
    /// 月末第一、第二个周二停播时间段
    /// </summary>
    public class LoopAlarmTime
    {
        public string beginTime { get; set; } = "13:00:00";
        public string endTime { get; set; } = "17:05:00";
        public bool IsInTime(DateTime dt)
        {
            try
            { 
                return dt > DateTime.Parse(beginTime) && dt < DateTime.Parse(endTime);
            }
            catch 
            { 
                return false; 
            }
        }
    }
}
